package com.hxt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Huangxiutao on 2017/3/31.
 * 在spring boot中可以使用spring-mvc
 */
@Controller
@RequestMapping("/hello")
public class HelloController {
    @RequestMapping("first")
    public String first(Model model){
        model.addAttribute("hello","hello");
        return "first";
    }

}
